<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Progressive Play Server
 * AJAX Controller
 * /controllers/ajax.php
 * By: Yukwunhang
 */

class Ajax extends MY_Controller
{
	// Constructor
	function Ajax()
	{
		parent::MY_Controller();
	}
	/**
	 * Handle AJAX Development feeds requests.
	 * 
	 * @return Feeds in HTML
	 */
	function feeds()
	{
		// Load models/libraries/helpers
		$this->load->library('simplepie');
		
		// Get development RSS feed updates using Simple Pie
		$this->simplepie->set_feed_url('http://code.google.com/feeds/p/fracsnetpps/updates/basic');
		$this->simplepie->enable_cache(FALSE);
        $this->simplepie->init();
		$this->data['update_feed'] = $this->simplepie;
		
		$this->load->view('feeds_view', $this->data);
	}
}